<template>
  <div class="tool-bar">
    <div class="small">
      <i class="iconfont icon-xiaolian1"></i>
      <span>客服</span>
    </div>
    <div class="small">
      <i class="iconfont icon-fangzi"></i>
      <span>店铺</span>
    </div>
    <div class="small">
      <i class="iconfont icon-shoucang"></i>
      <span>收藏</span>
    </div>
    <div class="add-cart" @click="addCart">加入购物车</div>
    <div class="buy">购买</div>
  </div>
</template>

<script>
export default {
  name: "DetailToolBar",
  methods: {
    addCart() {
      this.$emit("addCart");
    },
  },
};
</script>

<style scoped  lang="less" >
.tool-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 -2px 2px #eee;
  display: flex;
  div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .small {
    flex: 1;
    .iconfont {
      font-size: 22px;
    }
    .icon-xiaolian1 {
      color: tomato;
      font-weight: 400;
    }
  }
  .add-cart {
    width: 100px;
    background-color: rgb(96, 201, 233);
  }
  .buy {
    width: 100px;
    color: white;
    background-color: rgb(250, 54, 175);
  }
}
</style>
